import request from "../../utils/request";
/*
* 查询所有的部门和部门的人数*/
export function findDeptAndCount() {
    return request({
        url:"/department/findDeptAndCount",
            method:'get'
    })
}

/*
根据ID删除部门
 */

export  function deleteDeptById(id) {
    return request({
        url:"/department/deleteDept",
        method:'get',
        params:{
            id
        }
    })
}

/*
添加用户
 */

export  function addDept(department) {
    return request({
        url:"/department/addDept",
        method:'post',
        data: department
    })
}

/*
修改用户
 */

export  function resetDept(department) {
    return request({
        url:"/department/resetDept",
        method:'post',
        data:department
    })
}


